package com.bw.mvpcore

import java.lang.ref.SoftReference

abstract class BasePresenter<Repo:BaseRepository<*>,V:IView>(view:V) {
    protected lateinit var mRepository:Repo
    protected lateinit var mView:SoftReference<V>
    init {
        mRepository=createPresenter()
        mView= SoftReference<V>(view)
    }

    abstract fun createPresenter(): Repo


}